/**************************************************************************
 *         Copyright(c) 2007 by Sunplus mMedia  Technology Co., Ltd.       *
 *                                                                         *
 *  This software is copyrighted by and is the property of Sunplus mMedia  *
 *  Technology Co., Ltd. All rights are reserved by Sunplus mMedia Techno- *
 *  logy Co., Ltd. This software may only be used in accordance with the   *
 *  corresponding license agreement. Any unauthorized use, duplication,    *
 *  distribution, or disclosure of this software is expressly forbidden.   *
 *                                                                         *
 *  This Copyright notice "M U S T" not be removed or modified without     *
 *  prior written consent of Sunplus mMedia Technology  Co., Ltd.          *
 *                                                                         *
 *  Sunplus mMedia Technology Co., Ltd. reserves the right to modify this  *
 *  software without notice.                                               *
 *                                                                         *
 *  Sunplus mMedia Technology Co., Ltd.                                    *
 *  19-1, Innovation First Road, Science-Based Industrial Park,            *
 *  Hsin-Chu, Taiwan, R.O.C.                                               *
 *                                                                         *
 **************************************************************************/
#ifndef __MSDC_DMA_H__
#define __MSDC_DMA_H__

UINT8 USBMSDC_HAL_DoDMA(UINT8 Src,UINT8 Dst, UINT16 nByte, UINT8 Mode, UINT8 FlashPageDMA);
UINT8 USBMSDC_Dram2Usb(UINT32 DramAddr,UINT16 size);
UINT8 USBMSDC_Usb2Dram(UINT32 DramAddr,UINT16 size);
UINT8 USBMSDC_Sram2Usb(UINT16 size);
UINT8 USBMSDC_Usb2Sram(UINT8* sramAddr, UINT16 size);
UINT8 USBMSDC_HAL_Set4KSRAMMode(UINT8 Mode);
UINT8 USBMSDC_HAL_SRAMHigh2Low(UINT16 size,UINT8* buffer);
UINT8 USBMSDC_HAL_SRAMLow2High(UINT16 size,UINT8* buffer);
UINT8 USBMSDC_HAL_SetSRAMDMA(UINT16 SRAMAddr);
//UINT8 USBMSDC_HAL_SetUSBDMA(UINT8 USBDMASrc, UINT8 USBDMADst);
UINT8 USBMSDC_HAL_SetDRAMDMA(UINT32 DRAMAddr);
void USBMSDC_HAL_ReadDRAMDMAAdr(UINT32* DRAMAddr);


#endif /*__MSDC_DMA_H__*/
